package com.java.service;

import com.java.dao.UserDao;
import com.java.vo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: LR
 * @Date: 2018/6/10
 * @Time: 15:48
 */
@Service
public class UserService {

    private UserDao userDao;
    public UserDao getUserDao() {
        return userDao;
    }
    @Autowired
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }


    public User selectUser(User user) {
        System.out.println("userService");
        return this.getUserDao().selectUser(user);
    }
}
